package edu.bit.water.dao;

import java.util.ArrayList;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataIntegrityViolationException;
import org.springframework.dao.DuplicateKeyException;
import org.springframework.stereotype.Repository;

import edu.bit.water.entity.Column;
import edu.bit.water.entity.MetaEvaWuseInfo;

@Mapper
@Repository
public interface MetaEvaWuseInfoDao {
	ArrayList<MetaEvaWuseInfo> queryMetaEvaWuseInfo();
	int queryColumnNumByFaLevel(int faLevel);
	int insert(MetaEvaWuseInfo metaEvaWuseInfo) throws DataIntegrityViolationException;
	//int insertEntity(MetaEvaWuseInfo metaEvaWuseInfo) throws DataIntegrityViolationException;
	int delete(@Param("id") int id);
	List<Column> selectColumn();
    int updateMetaEvaWuseInfo(MetaEvaWuseInfo metaEvaWuseInfo);
	Integer getMaxId();
}
